package org.imooc.constant;

public enum PageCodeEnum {
    ADD_SUCCESS(1000, "新增成功！"),
    ADD_FAIL(1001, "新增失败！"),;

    private Integer code;
    private String msg;

    //返回码，传递给页面的KEY值
    public static final String KEY = "pageCode";


    //不加修饰符，默认为private
    PageCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
